<?php if ($this->vars['result']): ?>
  <select name="select">
  <?php foreach ($this->vars['result'] as $key=>$list): ?>
    <!-- <?php print_r($list['title']) ?> -->
    <option value ="<?= $key ?>"><?= $list['title'] ?></option>
  <?php endforeach ?>
  </select>
  <button
      type="button"
      data-request="onGetData"
      data-request-update="'filmdetails': '#filmdetails'"
      class="btn btn-default">
      获取数据
  </button>
<?php else: ?>
    nothing
<?php endif ?>
